import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import pinia from "@/stores";
import router from "./router";
import App from './App.vue'
import '@/assets/css/global.css'
import Header from "@/components/Header/index.vue";
import Footer from "@/components/Footer/index.vue";
import VideoList from "@/components/videoList/index.vue";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.component('Header',Header)
app.component('Footer',Footer)
app.component('VideoList',VideoList)
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
